package com.bwie.seckill.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 中间表,商品表和秒杀活动表
 * 
 * @author gy
 * @email gy@gmail.com
 * @date 2022-06-19 20:25:20
 */
@Data
@TableName("tb_middle")
public class MiddleEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 中间表id
	 */
	@TableId
	private Integer seckillMiddleId;
	/**
	 * 商品id
	 */
	private Integer shopId;
	/**
	 * 秒杀活动id
	 */
	private Integer seckillId;
	/**
	 * 订单id
	 */
	private Integer orderId;
	/**
	 * 秒杀价格
	 */
	private BigDecimal seckillPrice;
	/**
	 * 秒杀状态
	 */
	private Integer seckillStatus;
	/**
	 * 秒杀库存
	 */
	private Integer seckillStockNum;
	/**
	 * 是否限购
	 */
	private Integer isPurchase;
	/**
	 * 限购数量
	 */
	private Integer purchaseNum;
	/**
	 * 是否包邮
	 */
	private Integer isExpressage;

}
